/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <iostream>

using namespace std;

int main_29()
{
//    freopen("ch2-loopStructureProgramming-eg2-5.in","r",stdin);
//    freopen("ch2-loopStructureProgramming-eg2-5.out","w",stdout);
    int min_val,max_val,i=1,val;
    double avg=0.0;
    scanf("%d",&val);
    max_val=min_val=val;
    avg+=val;
    while (scanf("%d",&val)!=EOF)
    {
        if (val>max_val)
        {
            max_val=val;
        }
        if (val<min_val)
        {
            min_val=val;
        }
        avg+=val;
        ++i;
    }
    printf("%d %d %.3lf\n",min_val,max_val,avg/i);
	return 0;
}
